import {DatePicker} from "antd";
import FormItem from "antd/es/form/FormItem";
import {RangePickerProps} from "./dev.tsx";
import {removeSetter} from "../../../../utils/removeSetter.ts";
const { RangePicker } = DatePicker;
const RangePickerProd =  (props:RangePickerProps) => {

    const {styles} = props;
    const ComponentProps = removeSetter({...props},["children","parentId"])

    return (
        <div >
            <FormItem>
                <FormItem  label={props.label} name={props.name} rules={props.rule} style={{margin:"0",...styles}}>
                    <RangePicker {...ComponentProps} />
                </FormItem>
            </FormItem>
        </div>
    );
};

export default RangePickerProd;